<{capture name="header"}>
<{css app="ome" src="ome.css"}>
<{css app="ome" src="style.css"}>
<{script src="coms/autocompleter.js" app="desktop"}>
<{script src="coms/pager.js" app="desktop"}>
<{/capture}>


<div class="tableform">


<h4><{if $io=='1'}>入库<{else}>出库<{/if}>单明细</h4>

<div class="division">
<table border="0" cellspacing="0" cellpadding="0" class="gridlist">
<col style="width:10%;"></col>
<col style="width:30%;"></col>
<col style="width:10%;"></col>
<col style="width:10%;"></col>
<col style="width:6%;"></col>
<thead>
<tr>
	<th>基础物料编码</th>
    <th>基础物料名称</th>
    <th>规格</th>
	<th>条码</th>
	<th>申请数量</th>
 <{if $io=='1'}>
 <th>良品数量</th>
 <th>不良品数量</th>
 <{else}>
 <th>入库数量</th>
 <th>不良品数量</th>
 <{/if}>
</tr>
</thead>
<tbody>
<{foreach from=$iso.iso_items item=item}>
<{if ($item.nums!=$item.normal_num) || $item.defective_num>0}>
<tr>
    <td><{$item.bn}></td>
    <td><{$item.product_name}></td>
    <td><{$item.spec_info}></td>
    <td><{$item.barcode}></td>
    <td><{$item.nums}></td>
    <{if $io=='1'}>
    <td><{$item.normal_num}></td>
    <td><{$item.defective_num}></td>
    <{else}>
    <td><{$item.normal_num}></td>
    <td><{$item.defective_num}></td>
    <{/if}>
</tr>
<{/if}>
<{/foreach}>
</tbody>
</table>
<div id="cc" class="noprint table-action"> &nbsp;
          <{button type="button" class="btn-secondary" id="return-btn" label="关 闭" onclick="javascript:void(window.close());"}></div>
</div>

</div>


